# -*- coding: utf-8 -*-
# @Time        :2025/4/21 15:30
# @Author      :文刀水寿
# @File        : main.py
"""
 @Description :
"""
from fastapi import FastAPI
import uvicorn
from tortoise.contrib.fastapi import register_tortoise
from settings import TORTOISE_ORM
from api.student import student_api


app = FastAPI()

app.include_router(student_api, prefix='/student', tags=["选课系统的学生接口"])

register_tortoise(
    app=app,
    config=TORTOISE_ORM
)

if __name__ == '__main__':
    uvicorn.run("main:app", port=8090, reload=True)
